<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <?php include_title() ?>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <?php $anio = date('Y')?>
    <div id="menu">
    <?php if ($sf_user->isAuthenticated()):?>
      [ha ingresado como <?php echo $sf_user->getAttribute('nombre')?>]<br/>
      <?php echo link_to('Personas', 'persona/index')?>
      <?php echo link_to('Empresas', 'empresa/index')?>
      <?php echo link_to('Logout', 'default/logout')?>
      <?php else:?>
      <?php echo link_to('Login', 'default/login')?>

   <?php endif;?>
   </div>
 
    <div id="loading">Cargando ... <?php echo image_tag('ajax_loader.gif', array('width'=> 20))?></div>
    <?php echo $sf_content ?>
   <?php include_partial('global/footer', array('mi_anio' => $anio))?>
  </body>
</html>
